@SET TEMPLATEDIR="c:\program files\common files\microsoft shared\web server extensions\12\Template"
@SET STSADM="c:\program files\common files\microsoft shared\web server extensions\12\bin\stsadm"
@SET GACUTIL="C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe"
@SET BINDIR="C:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin"
@SET WPRESOURCESDIR="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\Navigant.Web.UI\1.0.0.0__bd8cff5164b478ae"

Echo Installing Navigant DLL's in the GAC
%GACUTIL% -if bin\debug\Navigant.Web.UI.dll
%GACUTIL% -if bin\debug\Navigant.Application.dll
%GACUTIL% -if bin\debug\Navigant.Infrastructure.dll
%GACUTIL% -if bin\debug\Navigant.Infrastructure.Repositories.dll
%GACUTIL% -if bin\debug\Navigant.Model.dll

xcopy bin\debug\Navigant.Web.UI.pdb C:\WINDOWS\assembly\GAC_MSIL\Navigant.Web.UI\1.0.0.0__bd8cff5164b478ae /s /Y
xcopy bin\debug\Navigant.Application.pdb C:\WINDOWS\assembly\GAC_MSIL\Navigant.Application\1.0.0.0__bd8cff5164b478ae /s /Y
xcopy bin\debug\Navigant.Infrastructure.pdb C:\WINDOWS\assembly\GAC_MSIL\Navigant.Infrastructure\1.0.0.0__bd8cff5164b478ae /s /Y
xcopy bin\debug\Navigant.Infrastructure.Repositories.pdb C:\WINDOWS\assembly\GAC_MSIL\Navigant.Infrastructure.Repositories\1.0.0.0__bd8cff5164b478ae /s /Y
xcopy bin\debug\Navigant.Model.pdb C:\WINDOWS\assembly\GAC_MSIL\Navigant.Model\1.0.0.0__bd8cff5164b478ae /s /Y

rem Echo Copying files to TEMPLATE directory
xcopy /e /y TEMPLATE\* %TEMPLATEDIR%

rem Echo Copying files to wpresources directory
rem xcopy /e /y wpresources\* %WPRESOURCESDIR%

rem Echo Installing features
rem %STSADM% -o uninstallfeature -filename  NavigantPages\feature.xml -force
rem %STSADM% -o installfeature -filename  NavigantPages\feature.xml -force

rem %STSADM% -o uninstallfeature -filename  NavigantPreservationNoticePreview\feature.xml -force
rem %STSADM% -o installfeature -filename  NavigantPreservationNoticePreview\feature.xml -force

rem %STSADM% -o uninstallfeature -filename  NavigantWebParts\feature.xml -force
rem %STSADM% -o installfeature -filename  NavigantWebParts\feature.xml -force

REM IISRESET
REM cscript c:\windows\system32\iisapp.vbs /a "SharePointDefaultAppPool" /r
REM cscript c:\windows\system32\iisapp.vbs /a "SharePointDefaultAppPool"